import os
from google.appengine.api import users
from google.appengine.ext.webapp import template
from google.appengine.ext import webapp
from google.appengine.ext import db
from imphandler import *
from sheet_model import Sheet
from sheet_model import SheetItem

class SheetEdit_SetName(ImpHandler):
	def processRequest(self):
		sKey = self.request.get('key')
		sNewName = self.request.get('newname')
		if(not sKey or not sNewName):
			return False
		sheet = db.get(sKey)
		sheet.description = sNewName
		sheet.put()
	def notAuthenticated(self):
		self.response.status = 403
